package org.papervision3d.core.proto
{
	import org.papervision3d.objects.DisplayObject3D;
	import org.papervision3d.core.geom.DrawTriangle;
	import org.papervision3d.core.geom.Mesh3D;
	import org.papervision3d.core.geom.Face3D;
	
	public class CanalRenderCallback extends RenderCallback
	{
		

        public override function face( face : Face3D, object:Mesh3D):void
        {
        	var triangle:DrawTriangle = face.drawtriangle;
            if (inclip(triangle))
                triangles.push(triangle);
            
          	triangle.smooth = ( triangle.area > 2000 );
           //triangle.
        }
	}
}